#include <57header.h>

void *func(void *p){

    char *str = (char *)malloc(20);
    strcpy(str, "hello");

    return str;
}
int main(int argc,char*argv[])
{
    pthread_t son_id;
    pthread_create(&son_id, NULL, func, NULL);


    void *p;
    // pthread_join:等待当前进程中的另外一个线程退出
    pthread_join(son_id, &p);

    printf("p:%s \n", (char *)p);

    return 0;
}

